package com.ssy.lingxi.member.merchant.api.model.vo.inner.request;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 下级会员与多个上级会员
 * @author yzc
 * @version 2.0.0
 * @date 2021/9/7
 */
public class MemberAndUpperMembersVO implements Serializable {
    private static final long serialVersionUID = -8682611101085477431L;

    /**
     * 会员id
     */
    @NotNull(message = "下级会员Id不能为空")
    @Positive(message = "下级会员Id要大于0")
    private Long subMemberId;

    /**
     * 角色id
     */
    @NotNull(message = "下级会员角色Id不能为空")
    @Positive(message = "下级会员角色Id要大于0")
    private Long subRoleId;

    /**
     * 上级会员id和角色id
     */
    @NotEmpty(message = "上级会员id和角色id不能为空")
    List<MemberFeignVO> upperMemberRoles;

    public Long getSubMemberId() {
        return subMemberId;
    }

    public void setSubMemberId(Long subMemberId) {
        this.subMemberId = subMemberId;
    }

    public Long getSubRoleId() {
        return subRoleId;
    }

    public void setSubRoleId(Long subRoleId) {
        this.subRoleId = subRoleId;
    }

    public List<MemberFeignVO> getUpperMemberRoles() {
        return upperMemberRoles;
    }

    public void setUpperMemberRoles(List<MemberFeignVO> upperMemberRoles) {
        this.upperMemberRoles = upperMemberRoles;
    }
}
